from selenium.webdriver.common.by import By

from base.BasePage import BasePage


class WebCartPage(BasePage):
    def __init__(self,driver):
        self.driver = driver

        # 加入购物车

    def add_to_cart(self, good_name):
        # 1.查看商品详情
        self.find_ele((By.LINK_TEXT, "加入购物车")).click()




